package com.tianze.tzkf.utils;

/**
 * Created by Zcyang on 2018/8/17.
 */
public class ClickUtils {

    private static long lastClickTime = System.currentTimeMillis();
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        lastClickTime = time;
        return timeD <= 300;
    }


    public static boolean isFastDoubleClick1000() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        lastClickTime = time;
        return timeD <= 1000;
    }

}

